<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/tenant/company/tenantCompanyInfo.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<br>' +
            '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>运营商</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>增加子公司</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">增加子公司</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmTenantCompanyInfo">

                        <input type="hidden" id="companyParentId" name="companyParentId" value="${tenantCompanyInfo.companyParentId}">

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">子公司名称：</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="companyName" name="companyName">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">税号：</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="companyTaxNumber" name="companyTaxNumber" onkeyup="value=value.replace(/[\u4e00-\u9fa5]/ig,'')">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开票类型：</label>
                            <div class="col-sm-4">
                                <select class="form-control" name="invoiceType" id="invoiceType">
                                    <option value="0" selected>一般纳税人</option>
                                    <option value="1">小规模纳税人</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开户行：</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="companyBank" name="companyBank">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">账号：</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="companyBankAccount" name="companyBankAccount" onkeyup="value=value.replace(/[\u4e00-\u9fa5]/ig,'')">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">地址：</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="companyAddress" name="companyAddress">
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">电话：</label>
                            <div class="col-sm-4">
                                <input class="form-control" id="companyTel" name="companyTel">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    addTenantCompanyInfo.init();
</script>
</body>
</html>
